﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpInsuranceAdd.aspx.cs"
    Inherits="UI.ModEmployee.EmpInsuranceAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>增加保险信息</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
    <style type="text/css">
        td
        {
            height: 27px;
        }
    </style>
</head>
<body onload="window.document.forms[0].txtEmpCode.focus();">
    <form id="form1" runat="server">
    <br />
    &nbsp;<br />
    &nbsp;<p style="text-align: center; font-size: large;">
        <strong>保险信息管理</strong></p>
    <br />
    <table style="width: 80%;" align="center" class="td">
        <tr>
            <td>
                员工编号:
            </td>
            <td>
                <asp:TextBox ID="txtEmpCode" runat="server" CssClass="InputCss" Width="100px" 
                    AutoPostBack="True" OnTextChanged="txtEmpCode_TextChanged" MaxLength="20"></asp:TextBox>
                <a href="javascript:ShowLink('ZipSeaForIn.aspx',880,550)">
                    <img src="../Images/Search.gif" alt="搜索" width="27" height="12" border="0" /></a>
            </td>
            <td>
                员工姓名:
            </td>
            <td>
                <asp:TextBox ID="txtEmpName" runat="server" CssClass="InputCss" Width="100px" TabIndex="1"
                    MaxLength="20" onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                部门:
            </td>
            <td>
                <asp:TextBox ID="txtDeptName" runat="server" CssClass="InputCss" Width="100px" TabIndex="2"
                    MaxLength="20" onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            </td>
            <td>
                身份证号码:
            </td>
            <td>
                <asp:TextBox ID="txtZipCode" runat="server" CssClass="InputCss" Width="150px" TabIndex="3"
                    MaxLength="18"  onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                保险类型:
            </td>
            <td>
                <asp:DropDownList ID="ddlTypeID" CssClass="InputCss" Width="100px" runat="server"  onkeydown="if(event.keyCode==13)event.keyCode=9" 
                    TabIndex="4">
                </asp:DropDownList>
            </td>
            <td>
                保险单号:
            </td>
            <td>
                <asp:TextBox ID="txtInsuranceNo" runat="server" CssClass="InputCss" Width="100px"
                    TabIndex="5"  onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                保险基数:
            </td>
            <td>
                <asp:TextBox ID="txtBaseValue" runat="server" CssClass="InputCss" Width="100px" TabIndex="6"
                    MaxLength="8" onkeypress="return event.keyCode>=48&&event.keyCode<=57||event.keyCode==46"
                     onkeydown="if(event.keyCode==13)event.keyCode=9">0</asp:TextBox>元
            </td>
            <td>
                保险周期:
            </td>
            <td>
                <asp:TextBox ID="txtInsurancePeriod" runat="server" CssClass="InputCss" Width="100px"
                    TabIndex="7" MaxLength="8" onkeypress="return event.keyCode>=48&&event.keyCode<=57||event.keyCode==46"
                     onkeydown="if(event.keyCode==13)event.keyCode=9">1</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                个人支付:
            </td>
            <td>
                <asp:TextBox ID="txtEmpPay" runat="server" CssClass="InputCss" Width="60px" TabIndex="8"
                    MaxLength="8" onkeypress="return event.keyCode>=48&&event.keyCode<=57||event.keyCode==46"
                      onkeydown="if(event.keyCode==13)event.keyCode=9">0</asp:TextBox>元
            </td>
            <td>
                单位支付:
            </td>
            <td>
                <asp:TextBox ID="txtComPay" runat="server" CssClass="InputCss" Width="60px" TabIndex="9"
                    MaxLength="8" onkeypress="return event.keyCode>=48&&event.keyCode<=57||event.keyCode==46"
                      onkeydown="if(event.keyCode==13)event.keyCode=9">0</asp:TextBox>元
            </td>
        </tr>
        <tr>
            <td>
                生效日期:
            </td>
            <td>
                <asp:TextBox ID="txtBeginTime" runat="server" CssClass="InputCss" Width="100px" TabIndex="10"
                     maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;"  onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
            <td>
                失效日期:
            </td>
            <td>
                <asp:TextBox ID="txtEndTime" runat="server" CssClass="InputCss" Width="100px" TabIndex="11"
                     maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;"  onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                状态
            </td>
            <td>
                <asp:DropDownList ID="ddlStatu" runat="server" CssClass="InputCss" TabIndex="12" onkeydown="if(event.keyCode==13)event.keyCode=9" >
                    <asp:ListItem Value="Y">正式</asp:ListItem>
                    <asp:ListItem Value="T">临时</asp:ListItem>
                    <asp:ListItem Value="N">过期</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                备注:
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtMemo" runat="server" CssClass="InputCss" Width="450px" TabIndex="13"
                    Rows="5" TextMode="MultiLine" MaxLength="500" onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
            </td>
        </tr>
    </table>
    <p style="text-align: center;">
        <asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click" TabIndex="14" />
        &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="更新" OnClick="btnUpdate_Click"
            TabIndex="15" />
        &nbsp;<asp:Button ID="btnTransOk" runat="server" OnClick="btnTransOk_Click" Text="转正式"
            TabIndex="16" />
        &nbsp;<asp:Button ID="btnEnd" runat="server" OnClick="btnEnd_Click" Text="失效" TabIndex="17" />
        &nbsp;<asp:Button ID="btnClear" runat="server" onclick="btnClear_Click" 
            Text="清空" />
&nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"  OnClientClick="return confirm('确定要删除吗?\n');" 
            TabIndex="18" />
        &nbsp;<asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click" Text="关闭"
            TabIndex="19" CausesValidation="False" />
    </p>
    </form>
</body>
</html>
